#ifndef _BOOMERANG_H_
#define _BOOMERANG_H_

#include "Object.h"

#define BOOMERANG_VX			0.3
#define BOOMERANG_GRAVITY		0.005
#define BOOMERANG_VY			1.3
 

class Boomerang : public Object
{

	int countFrameRod;
	bool isLeft;

	int pos_x_first;

public:
	/*
	 *	get/set properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	Contructor/destructor
	 */
	Boomerang(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, bool isLeft);
	~Boomerang();

	
	/*
	 *	Method
	 */
	 
	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	//void updatePosition(list<Object*>* obj_list, DxInput* input, float TPF, int pox_x, int pos_y);

	//Castlevania Rod
	//void attack(list<Object*>* obj_list, float time);

	void render(int cameraX, int cameraY);
	void changeState(int state);
};

#endif